import App from './App'
import store from './store'
// #ifndef VUE3
import Vue from 'vue'
import * as http from './api/user.js'
import uView from './uni_modules/uview-ui'
// import "./components/setRem.js"
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$http = http

// if (uni.getSystemInfoSync().platform !== "devtools") {
// 	console.log = () => {}
// }

const app = new Vue({
	store,
	...App
})
// 如此配置即可
Vue.prototype.ScanErrorAudio = () => {
	let error_music = uni.createInnerAudioContext()
	error_music.src = '../../static/videos/error.wav'
	error_music.autoplay = true;;
	error_music.play()
}

Vue.use(uView)
// uni.$u.config.unit = 'rpx'
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import indexVue from './pages/hospitallist/index.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
